package com.ssi.service.shop.impl;

import java.util.List;
import java.util.Map;

import com.ssi.dao.shop.ShopDao;
import com.ssi.domain.goods.Goods;
import com.ssi.domain.shop.Shop;
import com.ssi.service.shop.ShopService;

/**
 * 
 * @author  lxf
 *
 */
public class ShopServiceImpl implements ShopService {
	private  ShopDao shopDao;
	public  ShopDao getShopDao(){
		return shopDao;
	};
	public void setShopDao (ShopDao shopDao) {
		this.shopDao = shopDao;
	}
	public void addShop(Shop shop) {
		shopDao.addShop(shop);
	}

	public void updateShop(Shop shop) {
		shopDao.updateShop(shop);
	}

	public void deleteShop(Integer shopId) {
		shopDao.deleteShop(shopId);
	}

	public Shop queryShopById(int id) {		
		return shopDao.queryShopById(id);
	}
	public List<Shop> queryAllShopByName(String name) {
		
		return shopDao.queryAllShopByName(name);
	}
	public List<Shop> queryShopByUserId(int id) {
		
		return shopDao.queryShopByUserId(id);
	}
	public List<Shop> queryAllShop() {
		return shopDao.queryAllShop();
	}
	public List<Goods> queryShopTop10(int count) {
		return shopDao.queryShopTop10(count);
	}
	
	
	







}
